package com.boot.controller;

import com.boot.config.DBConfig;
import com.boot.config.SystemConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @Autowired
    DBConfig dbConfig;

    @Autowired
    SystemConfig systemConfig;

    @GetMapping("/index")
    public String index(){
        System.out.println(dbConfig);
        System.out.println(systemConfig);
        return "index";
    }

}
